package com.huffman.smart_picture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huffman.smart_picture.domain.entity.FavoritePictureRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LinDeng
* @description 针对表【favorite_picture_record(用户点赞记录表)】的数据库操作Mapper
* @createDate 2025-05-06 16:08:50
* @Entity com.huffman.smart_picture.domain.entity.FavoritePictureRecord
*/
public interface FavoritePictureRecordMapper extends BaseMapper<FavoritePictureRecord> {
    FavoritePictureRecord getRecordByUserIdAndPicId(Long userId,Long pictureId);

    void batchInsertOrUpdate(@Param("list") List<FavoritePictureRecord> list);
}




